package com.carrental.amap.enums;

import lombok.Data;
import lombok.Getter;

/**
 * @author admin
 * @since 2022/3/25 11:16
 */
@Getter
public enum AmapApiEnum {

    /**
     * 输入的IP地址，能够快速的帮用户定位IP的所在位置。
     */
    IP_API("GET", "https://restapi.amap.com/v3/ip?parameters"),

    /**
     * 天气查询
     * key 请求服务权限标识
     * extensions 气象类型 base:返回实况天气 all:返回预报天气
     */
    WEATHER_API("GET","https://restapi.amap.com/v3/weather/weatherInfo?parameters");

    private final String action;
    private final String url;

    AmapApiEnum(String action,String url){
        this.action=action;
        this.url=url;
    }
}
